package com.sarees.test;
import java.io.IOException;

import org.junit.Test;

import lib.app.online.DATA;


public class ItemTestCases extends BaseClass
{

	//@Test
	public void testloginTest() throws IOException
	{
	
		app.Login(DATA.UNAME,DATA.PWORD);
		
		app.verifyUserLoggedIn();
		
		app.deleteUserBasket();
		
		app.logout();
		
	}
	
	@Test
	public void testInvalidLogin() throws IOException
	{
		app.Login(DATA.UNAME,DATA.PWORD);
		
		app.verifyUserNotLoggedIn(DATA.INVALIDUSRMSG);
	}
	@Test 
	public void testUserReg() throws IOException
	{
		app.regUser();
		app.verifyUsrReg(DATA.RUNAME);
		app.logout();
		
	}
	@Test
	public void testUserRegLogin() throws IOException
	{
		app.regUser();
		
		app.verifyUsrReg(DATA.RUNAME);
		
		app.logout();
		
		app.Login(DATA.UNAME,DATA.PWORD);
		
		app.deleteUserBasket();
		
		app.logout();
		
	}

}
